package bean;

public class Repertory {
    private int warehouseId;
    private int merchId;
    private int merchSum;
    private String merchname;
    private String warehouseName;
    private int surplusCapacity;//某仓库的剩余容量
    private int warehousecap;//某仓库的总量
    private int ADDmerchSum;//某仓库的商品总数量

    public Repertory(){}

    public Repertory(int warehouseId, int merchId, int merchSum, String merchname, String warehouseName, int surplusCapacity,int ADDmerchSum,int warehousecap) {
        this.warehouseId = warehouseId;
        this.merchId = merchId;
        this.merchSum = merchSum;
        this.merchname = merchname;
        this.warehouseName = warehouseName;
        this.surplusCapacity = surplusCapacity;
        this.ADDmerchSum = ADDmerchSum;
        this.warehousecap = warehousecap;
    }

    public int getwarehouseId() {
        return warehouseId;
    }

    public void setwarehouseId(int warehouseId) {
        this.warehouseId = warehouseId;
    }

    public int getMerchId() {
        return merchId;
    }

    public void setMerchId(int merchId) {
        this.merchId = merchId;
    }

    public int getMerchSum() {
        return merchSum;
    }

    public void setMerchSum(int merchSum) {
        this.merchSum = merchSum;
    }

    public String getMerchname() {
        return merchname;
    }

    public void setMerchname(String merchname) {
        this.merchname = merchname;
    }

    public String getWarehouseName() {
        return warehouseName;
    }

    public void setWarehouseName(String warehouseName) {
        this.warehouseName = warehouseName;
    }

    public int getSurplusCapacity() {
        return surplusCapacity;
    }

    public void setSurplusCapacity(int surplusCapacity) {
        this.surplusCapacity = surplusCapacity;
    }

    public int getADDmerchSum() {
        return ADDmerchSum;
    }

    public void setADDmerchSum(int ADDmerchSum) {
        this.ADDmerchSum = ADDmerchSum;
    }

    public int getWarehousecap() {
        return warehousecap;
    }

    public void setWarehousecap(int warehousecap) {
        this.warehousecap = warehousecap;
    }

    @Override
    public String toString() {
        return "Repertory{" +
                "warehouseId=" + warehouseId +
                ", merchId=" + merchId +
                ", merchSum=" + merchSum +
                ", merchname='" + merchname + '\'' +
                ", warehouseName='" + warehouseName + '\'' +
                ", surplusCapacity=" + surplusCapacity +
                ", warehousecap=" + warehousecap +
                ", ADDmerchSum=" + ADDmerchSum +
                '}';
    }
}
